package com.example.utils.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 * @author lit
 */
@Component
@ConfigurationProperties(prefix = "common")
public class CommonConfig{
    /**
     * 部门
     */
    private static String deptNames;
    /**
     * 文件路径
     */
    private static String profile;

    public static String getDeptNames(){
        return deptNames;
    }

    public void setDeptNames(String profile){
        CommonConfig.deptNames = profile;
    }
    
    public static String getProfile(){
        return profile;
    }

    public void setProfile(String profile){
        CommonConfig.profile = profile;
    }
}
